package com.domain.result;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author zhan
 */
public class ResultData implements Serializable {

    private int code = 200;
    private int result = 0;
    private String message = "SUCCESS";
    private int count = 0;
    private List data;
    private Map<String,Object> record;
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public int getResult() {
        return result;
    }

    public void setResult(int result) {
        this.result = result;
    }

    public List getData() {
        return data;
    }

    public void setData(List data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Map<String, Object> getMap() {
        return record;
    }

    public void setMap(Map<String, Object> map) {
        this.record = map;
    }

    @Override
    public String toString() {
        return "ResultData{" +
                "code=" + code +
                ", result=" + result +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }

}
